package top.yonyong.mock;

import org.junit.runner.RunWith;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
import top.yonyong.mock.service.impl.UserServiceImpl;

/**
 * @author yonyong
 **/
//告诉JUnit使用PowerMockRunner进行测试
@RunWith(PowerMockRunner.class)
//所有需要测试的类列在此处，适用于模拟final类或有final, private, static, native方法的类
@PrepareForTest({UserServiceImpl.class})
//为了解决使用powermock后，提示classloader错误
@PowerMockIgnore("javax.management.*")
public class BaseMock {

}
